import { httpRequest } from "@/utils/https.js"
import {baseUrl} from "@/utils/basic.js"
//首页
export const getIndex = (id) => 
	httpRequest(baseUrl+'index.php?m=api&c=wxapp&a=siteIndex', {
        id,
	},'get')
//站内站评论
export const getRote = (id,page,pagesize) => 
	httpRequest(baseUrl+'index.php?m=api&c=wxapp&a=siteIndexAllCommentList', {
        id,
        page,
        pagesize
	},'get')
// 站内站问答
export const getAskList = (id,page,pagesize,keyword) => 
	httpRequest(baseUrl+'index.php?m=api&c=wxapp&a=siteIndexAllAskList', {
        id,
		page,
		pagesize,
        keyword
	},'get')
//站内站问答其他列表
export const IndexAsk = (id) => 
	httpRequest(baseUrl+'index.php?m=api&c=wxapp&a=otherListBySiteIndexAsk', {
        id,
	},'get')
// 站内站资讯
export const getNews = (page,pagesize,id,keyword) => 
	httpRequest(baseUrl+'index.php?m=api&c=wxapp&a=siteIndexAllNewsList', {
		page,
		pagesize,
        id,
        keyword
	},'get')	
//站内站（资讯其他列表）
 export const SiteIndexNews = (id) =>
 	httpRequest(baseUrl+'index.php?m=api&c=wxapp&a=otherListBySiteIndexNews', {
         id
 	},'get')	   
//站内站（评论页其他列表）	 
export const getComment = (id) => 
	httpRequest(baseUrl+'index.php?m=api&c=wxapp&a=otherListBySiteIndexComment', {
        id,
	},'get')		
	
	
	
//站中站全部产品
export const shopGoodsList = (page,pagesize,type,id,keyword,cat_id) =>
	httpRequest(baseUrl+'index.php?m=api&c=wxapp&a=siteIndexAllGoodsList', {
        id,
		type,
		page,
		pagesize,
		keyword,
		cat_id
	},'get')
//站中站全部产品其他列表
export const siteIndexGoods = (id,keyword) => 
	httpRequest(baseUrl+'index.php?m=api&c=wxapp&a=otherListBySiteIndexGoods', {
        id,
		keyword
	},'get')